FROM node
WORKDIR /usr/src/iPack
RUN rm -rf /usr/src/iPack/* \
    && git clone https://gitee.com/iPackServer/iPack.git . \
    && chmod +x /usr/src/iPack/public/scripts/dockerfileKey.sh \
    && /usr/src/iPack/public/scripts/dockerfileKey.sh \
    && npm install -s
EXPOSE 8181
VOLUME ["/srv/www/data"]
CMD ["npm", "start"]